package cn.iocoder.yudao.module.acm.enums;

import cn.hutool.core.util.ArrayUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * project : hangshiServer
 * <p> 分类 </p>
 *
 * @author yisl
 * @date 2025-07-17【星期四】
 **/
@Getter
@AllArgsConstructor
public enum ACMSupplyCategoryEnum {
    CLEANING_STATUS_1("1", "机供品"),
    CLEANING_STATUS_2("2", "纺织品"),
    CLEANING_STATUS_3("3", "服务用具");

    private final String code;
    private final String description;

    public static String getDesc(String code) {
        return ArrayUtil.firstMatch(userType -> userType.getCode().equals(code), ACMSupplyCategoryEnum.values()).getDescription();
    }
}
